<!DOCTYPE html>
<html>
  <head>
    <title>canvas.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" src="../javascript/lib/jquery-1.9.1/jquery-1.9.1.min.js"></script>
	<style type="text/css">
		canvas{
			width: 100px;
			height: 100px;
			top: 0;
			left: 0;
			position: absolute;
		}
	</style>
	<script type="text/javascript">
		$(function(){
			var rect_ctx = $("canvas#rect")[0].getContext("2d");
			rect_ctx.fillRect(0, 0, 50, 50);
			
			$(document).click(function(){
				$("canvas#rect").animate({
					left: "+=80"
				}, 200)
			})
		})
	</script>
  </head>
  
  <body>
    <canvas id="rect"></canvas>
  </body>
</html>
